// expand
module.exports = async (ctx, next)=>{
  ctx.$success =  result => {
    ctx.body = result
  }

  ctx.$fail =  (e) => {
    ctx.body = e
  }
  await next()
}
